<?php

namespace app\admin\controller;

use app\admin\common\Base;
use think\Db;
use think\Session;

class Index extends Base
{
    public function index()
    {
        return $this->fetch();
    }

    public function main()
    {
        $this->assign('username', "ZYW");
        return $this->fetch();
    }

    public function logout()
    {
        Session::delete('user_info');
        $this->success('退出成功', '/admin/login/index.html');
    }
}
